#pragma once

#include "GeneralPropPage.h"
#include "FontPropPage.h"
#include "ViewPropPage.h"

#include "Options.h"

class OptionsDlg : public CPropertySheetImpl<OptionsDlg>
{
public:
    GeneralPropPage generalPage;
    FontPropPage fontPage;
    ViewPropPage viewPage;

    OptionsDlg(Options * const opt)
        : options(opt)
    {
        SetTitle(L"Options");

        generalPage.WorkingDir = options->GetWorkingDir();

        AddPage(generalPage);
        AddPage(fontPage);
        AddPage(viewPage);
    }

    void OnSheetInitialized()
    {
        AtlCreateEmptyMenuBar(m_hWnd, true);
    }

protected:

    Options * options;

};